package com.aduerr.v1shouyin.mvp.presenter;


import com.aduerr.v1shouyin.App;
import com.aduerr.v1shouyin.mvp.base.BasePresenter;
import com.aduerr.v1shouyin.mvp.view.IHomeReportView;

import javax.inject.Inject;


/**
 * @author Jenly <a href="mailto:jenly1314@gmail.com">Jenly</a>
 * @since 2017/2/21
 */

public class HomeReportPresenter extends BasePresenter<IHomeReportView> {

    @Inject
    public HomeReportPresenter(App app) {
        super(app);
    }
//    public void getHomeReport(final Context mContext) {
//        HashMap<String, String> addParams = new HashMap<>();
//        addParams.put(Constants.SITEUSERTYPE, Hawk.get(Constants.SITEUSERTYPE));
//        getView().showProgress();
//        getAppComponent().getAPIService().homeIndexReportDetail(RXRequest.getParams
//        (addParams, mContext))
//                .subscribeOn(Schedulers.io())
//                .observeOn(AndroidSchedulers.mainThread())
//                .subscribe(new BaseObserver<HomeReportEntity>(mContext) {
//                    @Override
//                    public void onResponse(@NonNull HomeReportEntity homeReportEntity) {
//                        Log.e("response==", "paramssage" + RXRequest.getParams
//                        (addParams, mContext));
//                        if (isViewAttached())
//                            getView().onGetHomeReport(homeReportEntity);
//
//                    }
//                });
//    }


}
